import http from '@/design/libs/request/request'
const BASE_URL = '/contract'

export default {
  // 获取列表数据
  list: data => http.post(BASE_URL + '/list', data),
  // 创建数据
  create: data => http.post(BASE_URL + '/create', data),
  // 获取数据
  fetch: (id) => http.post(BASE_URL + '/fetch/' + id),
  // 更新数据
  update: data => http.post(BASE_URL + '/update', data),
  // 删除单个
  delete: (id) => http.post(BASE_URL + '/delete/' + id),
  // 删除集合
  del: data => http.post(BASE_URL + '/delete', data),
  // 更新状态
  disable: data => http.post(BASE_URL + '/disable', data),
  // 排序数据
  sort: data => http.post(BASE_URL + '/sort', data),
  // 同步数据
  synchro: data => http.post(BASE_URL + '/synchro', data),
  // 保存申请表单
  save: data => http.post(BASE_URL + '/save', data),
  // 提交申请表单
  submit: data => http.post(BASE_URL + '/submit', data),
  // 获取部门列表
  deptList: data => http.post(BASE_URL + '/deptList', data),
  // 获取厂商名称
  firmName: data => http.post(BASE_URL + '/firmName', data),
  // 获取部门信息
  deptInfo: data => http.post(BASE_URL + '/deptInfo', data),
  // 获取楼层列表
  floors: data => http.post(BASE_URL + '/floors', data),
  // 获取led类型
  ledTypes: data => http.post(BASE_URL + '/ledTypes', data),
  // 厂商合同信息
  fcInfos: data => http.post(BASE_URL + '/fcInfos', data),
  // 厂商合同信息(包含过期)
  allfcInfos: data => http.post(BASE_URL + '/allfcInfos', data),
  // 人员信息
  applicant: data => http.post(BASE_URL + '/applicant', data),
  // 作废表单
  abate: data => http.post(BASE_URL + '/abate', data),
  // 撤销表单钉钉流程
  revoke: data => http.post(BASE_URL + '/revoke', data),
  // 部门
  departments: data => http.post(BASE_URL + '/departments', data),
  // 合同列表
  contractlist: data => http.post(BASE_URL + '/contractlist', data),
  // 获取指定楼层某类型广告
  adnames: data => http.post(BASE_URL + '/adnames', data),
  // 获取视频时长
  addurations: data => http.post(BASE_URL + '/addurations', data),
  // 获取视频频次
  adcountdays: data => http.post(BASE_URL + '/adcountdays', data),
  // 获取时间单位
  adtimeunits: data => http.post(BASE_URL + '/adtimeunits', data),
  // 获取广告租金
  adrent: data => http.post(BASE_URL + '/adrent', data),
  // 结束时间
  enddate: data => http.post(BASE_URL + '/enddate', data),
  // 重新生成合同
  contractagain: data => http.post(BASE_URL + '/contractagain', data),
  // 重新生成扣款单
  deductagain: data => http.post(BASE_URL + '/deductagain', data),
  // 获取pop数据
  popformdata: data => http.post(BASE_URL + '/popformdata', data),
  // 获取扣款项目列表
  deductnames: data => http.post(BASE_URL + '/deductnames', data),
  // 获取商友临时扣款单数据
  sydeductformdata: data => http.post(BASE_URL + '/sydeductformdata', data),
  // 获取批量数据
  addalldetails: data => http.post(BASE_URL + '/addalldetails', data)
}
